<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <center>
            <link rel="stylesheet" href="./formCSS.css">
        <div align="right"> <a href="./deconnexion.php">Déconnexion</a></div>
        <br><br><br>
         <fieldset style="border:solid 1px black; padding:20px; width:400px; color:midnightblue; "><legend>ajout tâche</legend>
              <table>
        <form name="f33"  method="POST">
            <tr><td>   nom tache</td><td><input type="text" name="nomtache"> </td></tr>
            <tr><td>     pourcentage d'affectation</td><td> <input type="number" name="pourcentagetache" value="100"></td></tr>
       <tr><td>      date cloture</td><td> <input type="date" name="datecloturetache"></td></tr>
       <tr><td>collaborateur</td><td><select name="listcol" size=1> 
                <?php
                
             $db = mysql_connect("localhost","root","root");
         mysql_selectdb("projet2", $db);
         $sql =mysql_query("select login from collaborateur");
         while($row = mysql_fetch_array($sql))
         {
            echo '<option value="'.$row['login'].'">'.$row['login'].'</option>';   
         }
            
            ?>
                
            
            </select></td></tr>
          <tr><td></td><td>  <br><br><br> <input type="submit" value="ajouter"></td></tr>
        </form>
              </table>
         </fieldset>
        <?php
        include './Manager.php';
        $m = new Manager();
        
        $m->AjouterTache();
        ?>
        </center>
    </body>
</html>
